/*
 * @Author: Seon.Hu SeonHu@126.com
 * @Date: 2023-11-24 10:16:47
 * @LastEditors: Seon.Hu SeonHu@126.com
 * @LastEditTime: 2023-11-24 17:11:48
 * @FilePath: \bg-vben\src\components\AdCardList\src\data.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { ref } from 'vue';
/** 每行个数 */
export const grid = ref(5);
/** slider属性 */
export const useSlider = (min = 3, max = 7) => {
  // 每行显示个数滑动条
  const getMarks = () => {
    const l = {};
    for (let i = min; i < max + 1; i++) {
      l[i] = {
        style: {
          color: '#fff',
        },
        label: i,
      };
    }
    return l;
  };
  return {
    min,
    max,
    marks: getMarks(),
    step: 1,
  };
};
